package co.com.ticci.mb.general;


import javax.faces.event.ActionEvent;


public abstract class GeneralMB 
{
	public  TransferObject to;
	public  Crud		   crud;
	
	public GeneralMB() 
	{
		crud = new Crud();
		
		to = new TransferObject();
		to.setEmprCons(1);
		to.setAutoCons(1);
		to.setUsuUsuario("PRUEBA");
		to.setUsuNombre("TICCI");
		
		Utilidades.getSession().setAttribute("TO",to);
		
		//TODO FALTA VALIDAR LOS USUARIOS QUE SI EXISTAN
	}
	
	public void insertar(ActionEvent event)
	{
		
	}
	
	public void borrar(ActionEvent event)
	{
		
	}
	
	public void grabar(ActionEvent event)
	{
		
	}
	
	public void cargar(ActionEvent event)
	{
		
	}
	
	public TransferObject getTo() 
	{
		return to;
	}

	public Crud getCrud() {
		return crud;
	}

	public void setTo(TransferObject to) {
		this.to = to;
	}

	public void setCrud(Crud crud) {
		this.crud = crud;
	}
}
